Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CRAN connection issues #116

Merged
merged 18 commits into from
Nov 16, 2022
Merged

Fix CRAN connection issues #116

merged 18 commits into from
Nov 16, 2022

Conversation

damianooldoni
Copy link
Contributor

This PR aims to solve #113, #114 and #115.

I used testthat::skip_if_offline() where needed in each of the test files. I preferred this skip function over testthat::skip_on_cran(). In this way a developer is free to test the package even if internet is (temporarily) unavailable.

About the vignette: I transformed some R chunks to markdown code where strictly needed. I know, this is not really elegant but I don't see really any other valid solution. Using package mockery and its function stub() will be way far less elegant than the solution proposed here.

@damianooldoni
Copy link
Contributor Author

About bumping version, I didn't. I let you choose about it. Feel free to commit, of course.

@codecov
Copy link

codecov bot commented Nov 9, 2022

Codecov Report

Merging #116 (c11d6d7) into main (b6d3308) will not change coverage.
The diff coverage is n/a.

❗ Current head c11d6d7 differs from pull request most recent head 0ca101b. Consider uploading reports for the commit 0ca101b to get more accurate results

@@            Coverage Diff            @@
##              main      #116   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           14        14           
  Lines          420       420           
=========================================
  Hits           420       420           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

damianooldoni and others added 3 commits November 16, 2022 20:34
I tested all the tests without an internet connection and removed the testthat::skip_if_offline() where the test still passed without it
@damianooldoni
Copy link
Contributor Author

@peterdesmet: I see you removed some "skips". Are you sure? You need internet connection for reading example_package.

@peterdesmet
Copy link
Member

@peterdesmet: I see you removed some "skips". Are you sure? You need internet connection for reading example_package.

Yes, I tested all.

I kept CRAN in relatedLink and provider in codemeta.json
@peterdesmet peterdesmet changed the title Fix CRAN issues Fix CRAN connection issues Nov 16, 2022
@peterdesmet peterdesmet merged commit 92205d5 into main Nov 16, 2022
@peterdesmet peterdesmet deleted the fix-cran-issues branch November 16, 2022 20:00
@peterdesmet peterdesmet mentioned this pull request Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants